package dch.service.page.impl;

import dch.entity.Acomment;
import dch.entity.Page;
import dch.entity.Result;
import dch.persistent.page.dao.AcommentDao;
import dch.persistent.page.impl.AcommentDaoImpl;
import dch.service.page.dao.AcommentService;

public class AcommentServiceImpl implements AcommentService {

	
	private AcommentDao acDao=null;
	
	public AcommentServiceImpl(){
		acDao=new AcommentDaoImpl();
	}
	@Override
	public void insert(Acomment ac) {
		
		acDao.insert(ac);
	}

	@Override
	public Result queryByPage(Page page, int albumid) {

		return acDao.queryByPage(page, albumid);
	}
	
	public void close(){
		acDao.close();
	}

}
